package cn.visu.security.listener;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;

/**
 * shiro自己的的session监听器
 * 用来管理主体与应用之间的交换数据
 */
public class MySessionListener implements SessionListener {


    @Override
    public void onStart(Session session) {
        System.out.println("================create Session:" + session.getId());
    }

    @Override
    public void onStop(Session session) {
        System.out.println("================stop Session:" + session.getId());
    }

    @Override
    public void onExpiration(Session session) {
        System.out.println("================expire Session:" + session.getId());
    }
}
